home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY-2.2 / SCENES / level2 / WATERBOW < prev    next >
Text File  |  1993-09-28  |  3KB  |  126 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Various and Sundry
  4. //
  5. // Revision Note:
  6. // Reworked both the declared wood texture (turb and colormap) and
  7. // the application of it on the floor plane.
  8. // Note that wood doesn't really look like much until you get around
  9. // 640x480.  Anti-aliasing helps even more to bring out the detail.  -dmf
  10.  
  11. #include "shapes.inc"
  12. #include "colors.inc"
  13. #include "textures.inc"
  14.  
  15. // a light tan wood with brown rings
  16. #declare New_Tan_Wood = pigment {
  17.    wood
  18.    turbulence 0.03
  19.    colour_map {
  20.       [0.0 0.4  colour red 0.6 green 0.45 blue 0.25
  21.                 colour red 0.65 green 0.45 blue 0.25]
  22.       [0.4 1.01 colour red 0.6 green 0.4 blue 0.2
  23.                 colour red 0.25 green 0.15 blue 0.05]
  24.    }
  25. }
  26.  
  27. camera {
  28.    direction <0.0, 0.0, 1.0>
  29.    up  <0.0, 1.0, 0.0>
  30.    right <4/3, 0.0, 0.0>
  31.    translate <0.0, 0.0, -56.0>
  32. }
  33.  
  34.  
  35. // A bowl
  36. intersection {
  37.    sphere { <0.0, 0.0, 0.0>, 1.0 }
  38.    sphere { <0.0, 0.0, 0.0> 0.9 }
  39.    plane { y, 0.5 }
  40.  
  41.    bounded_by {
  42.       sphere { <0.0, 0.0, 0.0> 21.0 }
  43.    }
  44.  
  45.    scale 20.0
  46.  
  47.    pigment { Red }
  48.    finish {
  49.       ambient 0.2
  50.       diffuse 0.8
  51.       reflection 0.1
  52.    }
  53. }
  54.  
  55. // Water
  56. intersection {
  57.    sphere { <0.0, 0.0, 0.0>, 1.0 }
  58.    plane { y, 0.49 }
  59.  
  60.    bounded_by {
  61.       sphere { <0.0, 0.0, 0.0>, 21.0 }
  62.    }
  63.  
  64.    scale 19.5
  65.  
  66.    pigment { Black }
  67.    normal {
  68.       ripples 0.5
  69.       frequency 100.0
  70.       scale 100.0
  71.    }
  72.    finish {
  73.       reflection 0.6
  74.       refraction 0.6
  75.       ior 1.2
  76.    }
  77. }
  78.  
  79.  
  80. // Wood floor
  81. plane { y, -20.0
  82.    pigment {                  // seems to reduce "moire" effect on the grain
  83.       New_Tan_Wood            // Think of a log, facing you...
  84.       scale <2, 2, 1>         // z is infinite, so 1 is ok...
  85.       rotate <0, 90, 0>       // turn the "log" to the x axis
  86.       rotate <0.0, 0.0, 10.0> // tilt the log just a little bit
  87.       translate <0, -4, 0>    // lift it to where the rings are larger
  88.       rotate <5, 0, 0>        // tip it again, this time on x axis
  89.    }
  90.  
  91.    finish {
  92.       crand 0.015
  93.       ambient 0.15
  94.       diffuse 0.75
  95.       reflection 0.1
  96.    }
  97. }
  98.  
  99.  
  100. // Back wall
  101.  plane { z, 100.0
  102.  
  103.     pigment {
  104.        Red_Marble
  105.        scale 100.0
  106.     }
  107.     finish {
  108.       ambient 0.15
  109.       diffuse 0.8
  110.       reflection 0.1
  111.    }
  112. }
  113.  
  114. // A sky to reflect in the water
  115. plane { y, 150.0
  116.  
  117.    pigment { colour red 0.5 green 0.5 blue 1.0 }
  118.    finish {
  119.       ambient 0.15
  120.       diffuse 0.8
  121.    }
  122. }
  123.  
  124. // Light source
  125. light_source { <100.0, 120.0, -130.0> colour White }
  126.